package team.freeroom.hotelmanage.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import team.freeroom.hotelmanage.repository.entity.Floor;
import team.freeroom.hotelmanage.repository.mapper.FloorMapper;
import team.freeroom.hotelmanage.service.FloorService;
import java.util.List;
import java.util.Map;

@Service
public class FloorServiceImpl implements FloorService {
    @Autowired
    private FloorMapper floorMapper;

    @Override
    public int add(Floor floor) {
        return floorMapper.add(floor);
    }

    @Override
    public int edit(Floor floor) {
        return floorMapper.edit(floor);
    }

    @Override
    public int delete(Long id) {
        return floorMapper.delete(id);
    }

    @Override
    public List<Floor> findList(Map<String, Object> queryMap) {
        return floorMapper.findList(queryMap);
    }

    @Override
    public List<Floor> findAll() {
        return floorMapper.findAll();
    }

    @Override
    public Integer getTotal(Map<String, Object> queryMap) {
        return floorMapper.getTotal(queryMap);
    }
}
